package com.eos.orm.mybatis.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.eos.orm.mybatis.dao.PerformAmountMonthReportMapper;
import com.eos.orm.mybatis.model.PerformAmountMonthReport;
import com.eos.orm.mybatis.model.PerformAmountMonthReportExample;

public class PerformAmountMonthReportMapperImpl extends
		AbstractSqlSessionFactory implements PerformAmountMonthReportMapper {

	public int countByExample(PerformAmountMonthReportExample example) {
		return 0;
	}

	public int deleteByExample(PerformAmountMonthReportExample example) {
		return 0;
	}

	public int deleteByPrimaryKey(Integer id) {
		return 0;
	}

	public int insert(PerformAmountMonthReport record) {
		return 0;
	}

	public int insertSelective(PerformAmountMonthReport record) {
		return 0;
	}

	public List<PerformAmountMonthReport> selectByExample(
			PerformAmountMonthReportExample example) {
		List<PerformAmountMonthReport> templist = new ArrayList<PerformAmountMonthReport>();
		SqlSession session = sqlSessionFactory.openSession();
		try{
			PerformAmountMonthReportMapper mapper = session.getMapper(PerformAmountMonthReportMapper.class);
			templist = mapper.selectByExample(example);
			mapper = null;
		}catch(Exception e){
			System.out
			.println("com.eos.orm.mybatis.dao.impl.PerformAmountMonthReportMapperImpl.selectByExample throws exception:"
					+ e.getMessage());
		}finally{
			session.close();
		}
		return templist;
	}

	public PerformAmountMonthReport selectByPrimaryKey(Integer id) {
		return null;
	}

	public int updateByExample(PerformAmountMonthReport record,
			PerformAmountMonthReportExample example) {
		return 0;
	}

	public int updateByExampleSelective(PerformAmountMonthReport record,
			PerformAmountMonthReportExample example) {
		SqlSession session = sqlSessionFactory.openSession();
		try{
			PerformAmountMonthReportMapper mapper = session.getMapper(PerformAmountMonthReportMapper.class);
			mapper.updateByExampleSelective(record,example);
			session.commit();
			mapper = null;
		}catch(Exception e){
			System.out
			.println("com.eos.orm.mybatis.dao.impl.PerformAmountMonthReportMapperImpl.updateByExampleSelective throws exception:"
					+ e.getMessage());
		}finally{
			session.close();
		}
		return 0;
	}

	public int updateByPrimaryKey(PerformAmountMonthReport record) {
		return 0;
	}

	public int updateByPrimaryKeySelective(PerformAmountMonthReport record) {
		SqlSession session = sqlSessionFactory.openSession();
		try{
			PerformAmountMonthReportMapper mapper = session.getMapper(PerformAmountMonthReportMapper.class);
			mapper.updateByPrimaryKeySelective(record);
			session.commit();
			mapper = null;
		}catch(Exception e){
			System.out
			.println("com.eos.orm.mybatis.dao.impl.PerformAmountMonthReportMapperImpl.updateByPrimaryKeySelective throws exception:"
					+ e.getMessage());
		}finally{
			session.close();
		}
		return 0;
	}

}
